qui(function (require, exports, module) {

    Record.Signal_Config = $.extend({}, {}, {
        TABLE_COLMODEL_CONFIG: {
            id: {
                name: "id",
                index: 'id',
                title: false,
                width: 50,
                align: "center",
                sortable: false
            },
            signalName: {
                name: "signalName",
                index: 'signalName',
                title: false,
                width: 120,
                align: "center",
                sortable: false
            },
            signalAddress: {
                name: "signalAddress",
                index: 'signalAddress',
                title: false,
                width: 160,
                align: "center",
                sortable: false
            },
            priority: {
                name: "priority",
                index: 'priority',
                title: false,
                width: 80,
                align: "center",
                sortable: false,
                formatter: function (v, o, r) {
                    return Record.Signal_Util.formatter.priority(v, o, r);
                }

            },
            serverCluster: {
                name: "serverCluster",
                index: 'serverCluster',
                title: false,
                width: 100,
                align: "center",
                sortable: false
            },
            serverIp: {
                name: "serverIp",
                index: 'serverIp',
                title: false,
                width: 180,
                align: "center",
                sortable: false
            },
            channelName: {
                name: "channelName",
                index: 'channelName',
                title: false,
                width: 100,
                align: "center",
                sortable: false
            },
            opUser: {
                name: "opUser",
                index: 'opUser',
                title: false,
                width: 150,
                align: "center",
                sortable: false
            },
            addTime: {
                name: "createTime",
                index: 'createTime',
                title: false,
                width: 150,
                align: "center",
                sortable: false
            },

            status: {
                name: "status",
                index: 'status',
                title: false,
                width: 80,
                align: "center",
                sortable: false,
                formatter: function (v, o, r) {
                    return Record.Signal_Util.formatter.status(v, o, r);
                }
            },
            status_channel_signal: {
                name: "status",
                index: 'status',
                title: false,
                width: 60,
                align: "center",
                sortable: false,
                formatter: function (v, o, r) {
                    return Record.Signal_Util.formatter.status_channel_signal(v, o, r);
                }
            },
            operator_signal_list: {
                title: false,
                width: 120,
                align: "center",
                sortable: false,
                formatter: function (v, o, r) {
                    return Record.Signal_Util.formatter.operator_signal_list(v, o, r);
                }
            },

            operator_channel_signal_list: {
                title: false,
                width: 100,
                align: "center",
                sortable: false,
                formatter: function (v, o, r) {
                    return Record.Signal_Util.formatter.operator_channel_signal_list(v, o, r);
                }
            }
        },
        SIGNAL_DATA_LIST: {
            url: Record.urlConfig.getSignalLibraryListUrl,
            loadBeforeSend: function (xhr, settings) {
                var auth = Ancestor.Util.getAuth("/record/signal/libraryList");
                xhr.setRequestHeader('Sign', auth.sign);
                xhr.setRequestHeader("Time", auth.clientTime);
                xhr.setRequestHeader("From", auth.from);
                return true;
            },
            multiselect: false,
            loadtext: '加载中...',
            loadui: 'block',
            rowNum: 20,
            mtype: "post",
            datatype: "json",
            prmNames: {
                page: "pageNo",
                rows: "pageSize"
            },
            shrinkToFit: false,
            colNames: ["信号ID","信号名称","流地址", "优先级", "服务器集群",  "创建人", "创建时间", "状态", "操作"],
            colModel: ['id',"signalName", "signalAddress", "priority",  "serverCluster","opUser","addTime","status","operator_signal_list"],
            pager: "#pager"
        },

        CHANNEL_SIGNAL_DATA_LIST: {
            url: Record.urlConfig.getChannelSignalLibraryListUrl,
            loadBeforeSend: function (xhr, settings) {
                var auth = Ancestor.Util.getAuth("/record/channel/signal/libraryList");
                xhr.setRequestHeader('Sign', auth.sign);
                xhr.setRequestHeader("Time", auth.clientTime);
                xhr.setRequestHeader("From", auth.from);
                return true;
            },
            multiselect: false,
            loadtext: '加载中...',
            loadui: 'block',
            rowNum: 20,
            mtype: "post",
            datatype: "json",
            prmNames: {
                page: "pageNo",
                rows: "pageSize"
            },
            shrinkToFit: false,
            colNames: ["ID","信号名称","流地址", "优先级", "服务器集群", "服务器", "频道","创建人", "创建时间", "状态", "操作"],
            colModel: ['id',"signalName", "signalAddress", "priority",  "serverCluster","serverIp","channelName","opUser","addTime","status_channel_signal","operator_channel_signal_list"],
            pager: "#pager"
        },

        CODE_SUC :"A00000",
    });
});